package elion.com.theElion.fragmentMain;

import android.content.res.Resources;
import android.support.v4.app.Fragment;

import java.util.ArrayList;
import java.util.List;

import elion.com.elion.R;
import elion.com.theElion.fragmentServer.ConsultFragment;
import elion.com.theElion.fragmentServer.DecisionFragment;
import elion.com.theElion.fragmentServer.FuWuFragment;
import elion.com.theElion.fragmentServer.SuggestFragment;

/**
 * Created by xiaon on 2017/6/6.
 */

public class ServiceFragment extends MyTabFragment
{

    @Override
    public List<Fragment> setFragment() {
        List<Fragment> fragments = new ArrayList<>();
        FuWuFragment fuWuFragment = new FuWuFragment();
        DecisionFragment decisionFragment = new DecisionFragment();
        SuggestFragment suggestFragment = new SuggestFragment();
        ConsultFragment consultFragment = new ConsultFragment();
        fragments.add(fuWuFragment);
        fragments.add(consultFragment);//生态咨询
        fragments.add(suggestFragment);//施肥技术
        fragments.add(decisionFragment);//经验交流
        return fragments;
    }

    @Override
    public String[] setTitles() {
        Resources res = getResources();
        String[] titles = res.getStringArray(R.array.SereiceKind);
        return titles;
    }

    @Override
    public void setting() {

    }

    @Override
    public void tabLayoutSetting() {

    }
}
